import request from '@/utils/request'

// 查询报销记录列表
export function listReimbursement(query) {
  return request({
    url: '/funding/reimbursement/list',
    method: 'get',
    params: query
  })
}

// 查询报销记录详细
export function getReimbursement(reimbursementId) {
  return request({
    url: '/funding/reimbursement/' + reimbursementId,
    method: 'get'
  })
}

// 新增报销记录
export function addReimbursement(data) {
  return request({
    url: '/funding/reimbursement',
    method: 'post',
    data: data
  })
}

// 修改报销记录
export function updateReimbursement(data) {
  return request({
    url: '/funding/reimbursement',
    method: 'put',
    data: data
  })
}

// 删除报销记录
export function delReimbursement(reimbursementId) {
  return request({
    url: '/funding/reimbursement/' + reimbursementId,
    method: 'delete'
  })
}
